<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script src="Scripts/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
	swfobject.embedSWF("ExternalInterfaceExample.swf", "ExternalInterfaceExample", "550", "500", "9.0.0");
</script>

<script language="JavaScript">
     var jsReady = false;
	
	function isReady() {
         return jsReady;
     }
     
	 function pageInit() {
         jsReady = true;
         document.forms["form1"].output.value += "\n" + "JavaScript is ready.\n";
     }
     
	 function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window[movieName];
         } else {
             return document[movieName];
         }
     }
     
	 function sendToActionScript(value) {
         thisMovie("ExternalInterfaceExample").sendToActionScript(value);
     }
     
	 function sendToJavaScript(value) {
         document.forms["form1"].output.value += "ActionScript says: " + value + "\n";
     }
 </script>


</head>

<body onload="pageInit();">


<div id="ExternalInterfaceExample">
			<h1>Alternative content</h1>
			<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
		</div>

<hr />

<form name="form1" onsubmit="return false;">
	<input type="text" name="input" value="" />
    <input type="button" value="Send" onclick="sendToActionScript(this.form.input.value);" /><br />
    <textarea cols="60" rows="20" name="output" readonly="true">Initializing...</textarea>
</form>
 

</body>

</html>
